package Package.Test4;

public class Student {
    private String name;
    private int age;
    private int math;
    private int Chinese;
    public Student() {
    }
    public Student(String name, int age, int math,int Chinese) {
        this.name = name;
        this.age = age;
        this.math=math;
        this.Chinese=Chinese;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }

    public void setMath(int math) {
        this.math = math;
    }

    public int getMath() {
        return math;
    }

    public int getChinese() {
        return Chinese;
    }

    public void setChinese(int chinese) {
        Chinese = chinese;
    }

    public int getSum() {
        return Chinese+math;
    }
}
